package com.test.group6.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.test.group6.domain.EnterpriseInformation;
import com.test.group6.service.AddEnterpriseService;
@RestController
@RequestMapping("/AddEnterpriseController")
public class AddEnterpriseController {
	@Autowired
	private AddEnterpriseService addEnterpriseService;
	@RequestMapping("/addNewEnterprise")
	public String addNewEnterprise(EnterpriseInformation enterpriseInformation) {
		System.out.println(enterpriseInformation);
		return addEnterpriseService.addNewEnterprise(enterpriseInformation);
	}
}
